package com.bcxj.apipassenger.controller;

import com.bcxj.apipassenger.remote.ServiceOrderClient;
import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.entity.OrderInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: TestController
 * Package: com.bcxj.apipassenger.controller
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/20 15:34
 * @Version 1.0
 * @Since 1.0
 */
@RestController
@RequestMapping
@Slf4j
public class TestController {

    @Autowired
    private ServiceOrderClient serviceOrderClient;

    @GetMapping("/test-real-time-order/{orderId}")
    public ResponseResult testRealTimeOrder(@PathVariable("orderId") String orderId) {
        log.info("orderId:{}", orderId);
        ResponseResult responseResult = serviceOrderClient.testRealTimeOrder(orderId);
        return ResponseResult.success();
    }
}
